import http from '../utils/request'
//获取商品列表
function ProductList(per = 10, page: number, name: string, category: string) {
  return http({
    url: '/api/v1/admin/product',
    method: ' get',
    params: {
      per: per,
      page: page,
      name: name,
      category: category,
    },
  })
}
//商品分类列表
function ProductCategoryList(per: number, page: number, name: string,) {
  return http({
    url: '/api/v1/admin/productcategory',
    method: ' get',
    params: {
      per: per,
      page: page,
      name: name,
    },
  })
}

export { ProductList, ProductCategoryList }